(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "maishu-jueying", "react"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    const maishu_jueying_1 = require("maishu-jueying");
    const React = require("react");
    class StoreCouponsEditor extends maishu_jueying_1.PropEditor {
        render() {
            let coupons = this.props.value || [];
            return React.createElement(React.Fragment, null, coupons.map(c => React.createElement("div", null, c.Title)));
        }
    }
    exports.StoreCouponsEditor = StoreCouponsEditor;
});
// let couponsProp: keyof StoreCouponsState = "coupons";
// Component.setStateEditor({
//     propName: couponsProp,
//     componentType: StoreCoupons,
//     editorType: StoreCouponsEditor
// })
